package com.facebank.usersupport.mapper.usersupport.usersupport;

import com.facebank.usersupport.dto.OrderDto;
import com.facebank.usersupport.model.OrderProduct;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface OrderProductMapper {
    int deleteByPrimaryKey(Long orderNo);

    int insert(OrderProduct record);

    int insertSelective(OrderProduct record);

    OrderProduct selectByPrimaryKey(Long orderNo);

    int updateByPrimaryKeySelective(OrderProduct record);

    int updateByPrimaryKey(OrderProduct record);

    List<OrderDto> orderList(@Param("orderNo") Long orderNo,@Param("routeType") Short routeType,
                             @Param("status")  Short status, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    List<OrderDto> showOrderList(Long assId);

    List<OrderDto> showOrderDetail(Long orderNo);
}